
undo(defaultAnswer='y', unactivatedChanges='true')

stopEdit('y')

cd('/WLDFSystemResources/Module-0/WLDFResource/Module-0/WatchNotification/Module-0')
cmo.createSMTPNotification('SMTPNotifciation')

cd('/WLDFSystemResources/Module-0/WLDFResource/Module-0/WatchNotification/Module-0/SMTPNotifications/SMTPNotifciation')
cmo.setEnabled(true)
cmo.setMailSessionJNDIName('localhost')
set('Recipients',jarray.array([String('koy.dooley@aa.com')], String))
cmo.setSubject(None)
cmo.setBody(None)

activate()

undo(defaultAnswer='y', unactivatedChanges='true')

stopEdit('y')

undo(defaultAnswer='y', unactivatedChanges='true')

stopEdit('y')

undo(defaultAnswer='y', unactivatedChanges='true')

stopEdit('y')

cd('/Servers/AflsAdmSer')
cmo.setInterfaceAddress('10.62.45.226')
cmo.setClusterWeight(100)
cmo.unSet('PreferredSecondaryGroup')
cmo.unSet('ReplicationGroup')

activate()

cd('/Clusters/afls_bkg_cluster')
cmo.setClusterMessagingMode('multicast')
cmo.setMulticastSendDelay(3)
cmo.setMulticastTTL(2)
cmo.setMulticastBufferSize(64)
cmo.setMulticastDataEncryption(false)
cmo.setIdlePeriodsUntilTimeout(3)

activate()

cd('/Clusters/afls_res_cluster')
cmo.setClusterMessagingMode('multicast')
cmo.setMulticastSendDelay(3)
cmo.setMulticastTTL(2)
cmo.setMulticastBufferSize(64)
cmo.setMulticastDataEncryption(false)
cmo.setIdlePeriodsUntilTimeout(3)

activate()

cd('/')
cmo.createUnixMachine('cgappt41.qcorpaa.aa.com')

activate()

cd('/Machines/cgappt41.qcorpaa.aa.com/NodeManager/cgappt41.qcorpaa.aa.com')
cmo.setNMType('SSL')
cmo.setListenPort(5556)
cmo.setListenAddress('10.62.60.27')
cmo.setDebugEnabled(false)

activate()
cmo.setNMType('Plain')

activate()

editService.getConfigurationManager().removeReferencesToBean(getMBean('/Machines/cgvmct01.qcorpaa.aa.com'))

cd('/')
cmo.destroyMachine(getMBean('/Machines/cgvmct01.qcorpaa.aa.com'))

editService.getConfigurationManager().removeReferencesToBean(getMBean('/Machines/cgvmct02.qcorpaa.aa.com'))
cmo.destroyMachine(getMBean('/Machines/cgvmct02.qcorpaa.aa.com'))

editService.getConfigurationManager().removeReferencesToBean(getMBean('/Machines/cgvmct03.qcorpaa.aa.com'))
cmo.destroyMachine(getMBean('/Machines/cgvmct03.qcorpaa.aa.com'))

editService.getConfigurationManager().removeReferencesToBean(getMBean('/Machines/cgvmct04.qcorpaa.aa.com'))
cmo.destroyMachine(getMBean('/Machines/cgvmct04.qcorpaa.aa.com'))

activate()
cmo.createUnixMachine('res1')

cd('/Machines/res1/NodeManager/res1')
cmo.setNMType('Plain')
cmo.setListenPort(5556247)
cmo.setListenAddress('10.62.4.247')
cmo.setDebugEnabled(false)
cmo.setNMType('Plain')
cmo.setListenPort(5556)

activate()

undo(defaultAnswer='y', unactivatedChanges='true')

stopEdit('y')

cd('/Servers/afls_res1')
cmo.setListenPortEnabled(true)
cmo.setJavaCompiler('javac')
cmo.setClientCertProxyEnabled(false)
cmo.setMachine(getMBean('/Machines/res1'))

cd('/Servers/afls_res1/SSL/afls_res1')
cmo.setEnabled(false)

activate()

cd('/Clusters/afls_res_cluster')
cmo.setMulticastTTL(1)

activate()

cd('/Machines/res1')
cmo.setPostBindUID('Z1000076')
cmo.setPostBindGIDEnabled(true)
cmo.setPostBindGID('5016')
cmo.setPostBindUIDEnabled(true)

activate()

cd('/Servers/afls_res1/ServerStart/afls_res1')
cmo.setJavaVendor('Sun')
setEncrypted('Password', 'Password_1301935267119', '/opt/apps/afls/wls103_afls/domains/AflsAdmServer/ScriptConfig', '/opt/apps/afls/wls103_afls/domains/AflsAdmServer/ScriptSecret')
cmo.setJavaHome('/opt/bea/jdk160_05')
cmo.setUsername('weblogic')
cmo.setArguments('-DLogMgr.configFile=\"/afls_res/booking/managed/cargores/site/aa_site_default.properties javaagent:/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/aspectjweaver-1.6.8.jar -Djasper.reports.compile.class.path=/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/jasperreports-2.0.4.jar:/afls_res/booking/managed/cargores/latest/lib/itext-2.1.5.jar -\r\nDjasper.reports.compile.temp=/afls_res/booking/managed/cargores/temp')
cmo.setRootDirectory('/opt/apps/afls/wls103_afls/domains/AflsDomain')
cmo.setBeaHome('/opt/bea')

activate()
cmo.setArguments('-DLogMgr.configFile=\"/afls_res/booking/managed/cargores/site/aa_site_default.properties -javaagent:/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/aspectjweaver-1.6.8.jar -Djasper.reports.compile.class.path=/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/jasperreports-2.0.4.jar:/afls_res/booking/managed/cargores/latest/lib/itext-2.1.5.jar -\r\nDjasper.reports.compile.temp=/afls_res/booking/managed/cargores/temp')
cmo.setArguments('-DLogMgr.configFile=/afls_res/booking/managed/cargores/site/aa_site_default.properties -javaagent:/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/aspectjweaver-1.6.8.jar -Djasper.reports.compile.class.path=/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/jasperreports-2.0.4.jar:/afls_res/booking/managed/cargores/latest/lib/itext-2.1.5.jar -\r\nDjasper.reports.compile.temp=/afls_res/booking/managed/cargores/temp')

activate()

cd('/Servers/afls_res1/Log/afls_res1')
cmo.setLoggerSeverity('Info')
cmo.setDomainLogBroadcastSeverity('Info')
cmo.setLogFileSeverity('Info')
cmo.setStdoutSeverity('Info')
cmo.setMemoryBufferSeverity('Info')

activate()

cd('/Servers/afls_res1/ServerStart/afls_res1')
cmo.setArguments('-DLogMgr.configFile=/afls_res/booking/managed/cargores/site/aa_site_default.properties -javaagent:/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/aspectjweaver-1.6.8.jar -Djasper.reports.compile.class.path=/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/jasperreports-2.0.4.jar:/afls_res/booking/managed/cargores/latest/lib/itext-2.1.5.jar -Djasper.reports.compile.temp=/afls_res/booking/managed/cargores/temp')

activate()
cmo.setArguments('-Xms1024m -Xmx1024m -XX:MaxPermSize=256m -DLogMgr.configFile=/afls_res/booking/managed/cargores/site/aa_site_default.properties -javaagent:/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/aspectjweaver-1.6.8.jar -Djasper.reports.compile.class.path=/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/jasperreports-2.0.4.jar:/afls_res/booking/managed/cargores/latest/lib/itext-2.1.5.jar -Djasper.reports.compile.temp=/afls_res/booking/managed/cargores/temp\r\n')

activate()

undo(defaultAnswer='y', unactivatedChanges='true')

stopEdit('y')

cd('/Servers/afls_res1/OverloadProtection/afls_res1')
cmo.setPanicAction('system-exit')
cmo.setSharedCapacityForWorkManagers(65536)
cmo.setFreeMemoryPercentHighThreshold(80)
cmo.setFailureAction('force-shutdown')
cmo.setFreeMemoryPercentLowThreshold(20)
cmo.createServerFailureTrigger()

cd('/Servers/afls_res1/OverloadProtection/afls_res1/ServerFailureTrigger/afls_res1')
cmo.setMaxStuckThreadTime(600)
cmo.setStuckThreadCount(10)

activate()

cd('/Servers/afls_bkg1')
cmo.setListenPortEnabled(true)
cmo.setJavaCompiler('javac')
cmo.setClientCertProxyEnabled(false)
cmo.setMachine(getMBean('/Machines/res1'))

cd('/Servers/afls_bkg1/SSL/afls_bkg1')
cmo.setEnabled(false)

activate()

cd('/Servers/afls_bkg1/ServerStart/afls_bkg1')
cmo.setJavaVendor('Sun')
setEncrypted('Password', 'Password_1301939755002', '/opt/apps/afls/wls103_afls/domains/AflsAdmServer/ScriptConfig', '/opt/apps/afls/wls103_afls/domains/AflsAdmServer/ScriptSecret')
cmo.setJavaHome('/opt/bea/jdk160_05')
cmo.setUsername('weblogic')
cmo.setArguments('/opt/bea/jdk160_05/bin/java -Dweblogic.Name=afls_res1 -Dbea.home=/opt/bea -Djava.security.policy=/opt/bea/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.management.server=http://cgappt41.qcorpaa.aa.com:7005 -Djava.library.path=/opt/bea/jdk160_05/jre/lib/sparc/client:/opt/bea/jdk160_05/jre/lib/sparc:/opt/bea/jdk160_05/jre/../lib/sparc:.:/opt/bea/wlserver_10.3/server/native/solaris/sparc:/opt/bea/wlserver_10.3/server/native/solaris/sparc/oci920_8:/usr/jdk/packages/lib/sparc:/lib:/usr/lib -Djava.class.path=/opt/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/jdk160_05/lib/tools.jar:/opt/bea/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/bea/wlserver_10.3/server/lib/weblogic.jar:/opt/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/opt/bea/wlserver_10.3/server/lib/webservices.jar:/opt/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/opt/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/opt/bea:/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/aspectjweaver-1.6.8.jar -Dweblogic.system.BootIdentityFile=/opt/apps/afls/wls103_afls/domains/AflsDomain/servers/afls_res1/data/nodemanager/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false -DLogMgr.configFile=/afls_res/booking/managed/cargores/site/aa_site_default.properties -javaagent:/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/aspectjweaver-1.6.8.jar -Djasper.reports.compile.class.path=/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/jasperreports-2.0.4.jar:/afls_res/booking/managed/cargores/latest/lib/itext-2.1.5.jar -Djasper.reports.compile.temp=/afls_res/booking/managed/cargores/temp weblogic.Server')
cmo.setRootDirectory('/opt/apps/afls/wls103_afls/domains/AflsDomain')
cmo.setBeaHome('/opt/bea')

activate()
cmo.setArguments('-Xms1024m -Xmx1024m -XX:MaxPermSize=256m')

activate()

cd('/Servers/afls_bkg1/OverloadProtection/afls_bkg1')
cmo.setPanicAction('system-exit')
cmo.setSharedCapacityForWorkManagers(65536)
cmo.setFreeMemoryPercentHighThreshold(80)
cmo.setFailureAction('force-shutdown')
cmo.setFreeMemoryPercentLowThreshold(20)
cmo.createServerFailureTrigger()

cd('/Servers/afls_bkg1/OverloadProtection/afls_bkg1/ServerFailureTrigger/afls_bkg1')
cmo.setMaxStuckThreadTime(600)
cmo.setStuckThreadCount(0)

activate()

cd('/Servers/afls_bkg1/ServerStart/afls_bkg1')
cmo.setArguments('-Xms1024m -Xmx1024m -XX:MaxPermSize=256m\r\n')
cmo.setClassPath('/opt/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/op\r\nt/bea/jdk160_05/lib/tools.jar:/opt/bea/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/bea/wlserver_10.3/server/lib/weblogic.jar:/opt/bea/modules/features/weblogic.server.modules_\r\n10.3.0.0.jar:/opt/bea/wlserver_10.3/server/lib/webservices.jar:/opt/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/opt/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-con\r\ntrib.jar::/opt/bea/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/opt/bea/wlserver_10.3/server/lib/xqrl.jar:/afls_res/booking/managed/cargobkg/latest/apps2config')

activate()
cmo.setArguments('-Xms1024m -Xmx1024m -XX:MaxPermSize=256m\r\n')
cmo.setClassPath('/opt/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/jdk160_05/lib/tools.jar:/opt/bea/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/bea/wlserver_10.3/server/lib/weblogic.jar:/opt/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/opt/bea/wlserver_10.3/server/lib/webservices.jar:/opt/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/opt/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/opt/bea/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/opt/bea/wlserver_10.3/server/lib/xqrl.jar:/afls_res/booking/managed/cargobkg/latest/apps2config')

activate()

cd('/JDBCSystemResources/OperationalNonXA/JDBCResource/OperationalNonXA/JDBCDriverParams/OperationalNonXA/Properties/OperationalNonXA')
cmo.destroyProperty(getMBean('/JDBCSystemResources/OperationalNonXA/JDBCResource/OperationalNonXA/JDBCDriverParams/OperationalNonXA/Properties/OperationalNonXA/Properties/user'))
cmo.createProperty('user')

cd('/JDBCSystemResources/OperationalNonXA/JDBCResource/OperationalNonXA/JDBCDriverParams/OperationalNonXA/Properties/OperationalNonXA/Properties/user')
cmo.setValue('cargores')

cd('/JDBCSystemResources/OperationalNonXA/JDBCResource/OperationalNonXA/JDBCConnectionPoolParams/OperationalNonXA')
cmo.setInactiveConnectionTimeoutSeconds(30)
cmo.setTestTableName('SQL SELECT 1 FROM DUAL\r\n')

activate()

cd('/JDBCSystemResources/Operational/JDBCResource/Operational/JDBCDriverParams/Operational/Properties/Operational')
cmo.destroyProperty(getMBean('/JDBCSystemResources/Operational/JDBCResource/Operational/JDBCDriverParams/Operational/Properties/Operational/Properties/user'))
cmo.createProperty('user')

cd('/JDBCSystemResources/Operational/JDBCResource/Operational/JDBCDriverParams/Operational/Properties/Operational/Properties/user')
cmo.setValue('cargores')

cd('/JDBCSystemResources/Operational/JDBCResource/Operational/JDBCConnectionPoolParams/Operational')
cmo.setInactiveConnectionTimeoutSeconds(30)
cmo.setTestTableName('AIRPORTS\r\n')

activate()

cd('/JDBCSystemResources/CargoReferenceDataSource/JDBCResource/CargoReferenceDataSource/JDBCDriverParams/CargoReferenceDataSource/Properties/CargoReferenceDataSource')
cmo.destroyProperty(getMBean('/JDBCSystemResources/CargoReferenceDataSource/JDBCResource/CargoReferenceDataSource/JDBCDriverParams/CargoReferenceDataSource/Properties/CargoReferenceDataSource/Properties/user'))
cmo.createProperty('user')

cd('/JDBCSystemResources/CargoReferenceDataSource/JDBCResource/CargoReferenceDataSource/JDBCDriverParams/CargoReferenceDataSource/Properties/CargoReferenceDataSource/Properties/user')
cmo.setValue('cargores')

cd('/JDBCSystemResources/CargoReferenceDataSource/JDBCResource/CargoReferenceDataSource/JDBCConnectionPoolParams/CargoReferenceDataSource')
cmo.setInactiveConnectionTimeoutSeconds(30)
cmo.setTestTableName('SQL SELECT 1 FROM DUAL\r\n')

activate()

cd('/JDBCSystemResources/CargoBkgDataSource/JDBCResource/CargoBkgDataSource/JDBCDriverParams/CargoBkgDataSource/Properties/CargoBkgDataSource')
cmo.destroyProperty(getMBean('/JDBCSystemResources/CargoBkgDataSource/JDBCResource/CargoBkgDataSource/JDBCDriverParams/CargoBkgDataSource/Properties/CargoBkgDataSource/Properties/user'))
cmo.createProperty('user')

cd('/JDBCSystemResources/CargoBkgDataSource/JDBCResource/CargoBkgDataSource/JDBCDriverParams/CargoBkgDataSource/Properties/CargoBkgDataSource/Properties/user')
cmo.setValue('cargores')

cd('/JDBCSystemResources/CargoBkgDataSource/JDBCResource/CargoBkgDataSource/JDBCConnectionPoolParams/CargoBkgDataSource')
cmo.setInactiveConnectionTimeoutSeconds(30)
cmo.setTestTableName('SQL SELECT 1 FROM DUAL\r\n')

activate()

cd('/Servers/afls_res1/OverloadProtection/afls_res1')
cmo.setFreeMemoryPercentLowThreshold(50)

cd('/Servers/afls_res1/OverloadProtection/afls_res1/ServerFailureTrigger/afls_res1')
cmo.setMaxStuckThreadTime(600)
cmo.setStuckThreadCount(10)

activate()

cd('/Servers/afls_res1/OverloadProtection/afls_res1')
cmo.setFreeMemoryPercentHighThreshold(40)
cmo.setFreeMemoryPercentLowThreshold(20)

cd('/Servers/afls_res1/OverloadProtection/afls_res1/ServerFailureTrigger/afls_res1')
cmo.setMaxStuckThreadTime(120)
cmo.setStuckThreadCount(10)

activate()

cd('/')
cmo.createUnixMachine('cgvmct02')

activate()

cd('/Machines/cgvmct02')
cmo.setPostBindUID('Z1000076')
cmo.setPostBindGIDEnabled(true)
cmo.setPostBindGID('5016')
cmo.setPostBindUIDEnabled(true)

cd('/Machines/cgvmct02/NodeManager/cgvmct02')
cmo.setNMType('SSL')
cmo.setListenPort(5556)
cmo.setListenAddress('10.62.4.248')
cmo.setDebugEnabled(false)

activate()
cmo.setNMType('Plain')

activate()

cd('/Servers/afls_res2/ServerStart/afls_res2')
cmo.setJavaVendor('Sun')
setEncrypted('Password', 'Password_1301954393303', '/opt/apps/afls/wls103_afls/domains/AflsAdmServer/ScriptConfig', '/opt/apps/afls/wls103_afls/domains/AflsAdmServer/ScriptSecret')
cmo.setJavaHome('/opt/bea/jdk160_05')
cmo.setUsername('weblogic')
cmo.setArguments('-Xms1024m -Xmx1024m -XX:MaxPermSize=256m -DLogMgr.configFile=/afls_res/booking/managed/cargores/site/aa_site_default.properties -javaagent:/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/aspectjweaver-1.6.8.jar -Djasper.reports.compile.class.path=/afls_res/booking/managed/cargores/latest/lib/WEB-INF/lib/jasperreports-2.0.4.jar:/afls_res/booking/managed/cargores/latest/lib/itext-2.1.5.jar -Djasper.reports.compile.temp=/afls_res/booking/managed/cargores/temp')
cmo.setRootDirectory('/opt/apps/afls/wls103_afls/domains/AflsDomain')
cmo.setBeaHome('/opt/bea')

activate()

cd('/Servers/afls_bkg2/ServerStart/afls_bkg2')
cmo.setJavaVendor('Sun')
setEncrypted('Password', 'Password_1301954544291', '/opt/apps/afls/wls103_afls/domains/AflsAdmServer/ScriptConfig', '/opt/apps/afls/wls103_afls/domains/AflsAdmServer/ScriptSecret')
cmo.setJavaHome('/opt/bea/jdk160_05')
cmo.setUsername('weblogic')
cmo.setArguments('-Xms1024m -Xmx1024m -XX:MaxPermSize=256m')
cmo.setRootDirectory('/opt/apps/afls/wls103_afls/domains/AflsDomain')
cmo.setBeaHome('/opt/bea')
cmo.setClassPath('/opt/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/jdk160_05/lib/tools.jar:/opt/bea/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/bea/wlserver_10.3/server/lib/weblogic.jar:/opt/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/opt/bea/wlserver_10.3/server/lib/webservices.jar:/opt/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/opt/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/opt/bea/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/opt/bea/wlserver_10.3/server/lib/xqrl.jar:/afls_res/booking/managed/cargobkg/latest/apps2config')

activate()

cd('/Servers/afls_bkg2')
cmo.setListenPortEnabled(true)
cmo.setJavaCompiler('javac')
cmo.setClientCertProxyEnabled(false)
cmo.setMachine(getMBean('/Machines/cgvmct02'))

cd('/Servers/afls_bkg2/SSL/afls_bkg2')
cmo.setEnabled(false)

activate()

cd('/Servers/afls_res2')
cmo.setListenPortEnabled(true)
cmo.setJavaCompiler('javac')
cmo.setClientCertProxyEnabled(false)
cmo.setMachine(getMBean('/Machines/cgvmct02'))

cd('/Servers/afls_res2/SSL/afls_res2')
cmo.setEnabled(false)

activate()

cd('/Servers/afls_res1/OverloadProtection/afls_res1/ServerFailureTrigger/afls_res1')
cmo.setMaxStuckThreadTime(240)
cmo.setStuckThreadCount(10)

activate()

cd('/Clusters/afls_bkg_cluster')
cmo.setMulticastTTL(1)

activate()

cd('/')
cmo.createUnixMachine('cgvmct01')

cd('/Machines/cgvmct01')
cmo.setPostBindUID('Z1000076')
cmo.setPostBindGIDEnabled(true)
cmo.setPostBindGID('5016')
cmo.setPostBindUIDEnabled(true)

cd('/Machines/cgvmct01/NodeManager/cgvmct01')
cmo.setNMType('Plain')
cmo.setListenAddress('10.62.4.247')
cmo.setDebugEnabled(false)
cmo.setListenPort(5556)

editService.getConfigurationManager().removeReferencesToBean(getMBean('/Machines/res1'))

cd('/')
cmo.destroyMachine(getMBean('/Machines/res1'))

cd('/Servers/afls_res1')
cmo.setMachine(getMBean('/Machines/cgvmct01'))

cd('/Servers/afls_bkg1')
cmo.setMachine(getMBean('/Machines/cgvmct01'))

activate()

cd('/Servers/AflsAdmSer/ServerStart/AflsAdmSer')
cmo.setJavaVendor('Sun')
setEncrypted('Password', 'Password_1301973824044', '/opt/apps/afls/wls103_afls/domains/AflsAdmServer/ScriptConfig', '/opt/apps/afls/wls103_afls/domains/AflsAdmServer/ScriptSecret')
cmo.setJavaHome('/opt/bea/jdk160_05')
cmo.setUsername('weblogic')
cmo.setArguments('-Xms1024m -Xmx1024m -XX:CompileThreshold=8000 -XX:PermSize=48m  -XX:MaxPermSize=128m')
cmo.setRootDirectory('/opt/apps/afls/wls103_afls/domains/AflsAdmServer')
cmo.setBeaHome('/opt/bea')
cmo.setClassPath('/opt/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/jdk160_05/lib/tools.jar:/opt/bea/wlserver_10.3/server/\r\nlib/weblogic_sp.jar:/opt/bea/wlserver_10.3/server/lib/weblogic.jar:/opt/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/opt/bea/wlserver_10.3/server/lib/webservices.jar:/opt/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/op\r\nt/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/opt/bea/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/opt/bea/wlserver_10.3/server/lib/xqrl.jar')

activate()

cd('/Servers/AflsAdmSer/OverloadProtection/AflsAdmSer')
cmo.setPanicAction('system-exit')
cmo.setSharedCapacityForWorkManagers(65536)
cmo.setFreeMemoryPercentHighThreshold(20)
cmo.setFailureAction('force-shutdown')
cmo.setFreeMemoryPercentLowThreshold(5)
cmo.createServerFailureTrigger()

cd('/Servers/AflsAdmSer/OverloadProtection/AflsAdmSer/ServerFailureTrigger/AflsAdmSer')
cmo.setMaxStuckThreadTime(900)
cmo.setStuckThreadCount(10)

activate()

cd('/Servers/afls_res2/OverloadProtection/afls_res2')
cmo.setPanicAction('system-exit')
cmo.setSharedCapacityForWorkManagers(65536)
cmo.setFreeMemoryPercentHighThreshold(20)
cmo.setFailureAction('force-shutdown')
cmo.setFreeMemoryPercentLowThreshold(5)
cmo.createServerFailureTrigger()

cd('/Servers/afls_res2/OverloadProtection/afls_res2/ServerFailureTrigger/afls_res2')
cmo.setMaxStuckThreadTime(600)
cmo.setStuckThreadCount(10)

activate()

cd('/Servers/afls_res2')
cmo.createNetworkAccessPoint('adminChannel')

cd('/Servers/afls_res2/NetworkAccessPoints/adminChannel')
cmo.setProtocol('admin')
cmo.setListenAddress('10.62.60.9')
cmo.setEnabled(true)
cmo.setHttpEnabledForThisProtocol(true)
cmo.setTunnelingEnabled(false)
cmo.setOutboundEnabled(false)
cmo.setTwoWaySSLEnabled(false)
cmo.setClientCertificateEnforced(false)

activate()

undo(defaultAnswer='y', unactivatedChanges='true')

stopEdit('y')

cd('/Servers/afls_bkg2')
cmo.createNetworkAccessPoint('adminChannel')

cd('/Servers/afls_bkg2/NetworkAccessPoints/adminChannel')
cmo.setProtocol('admin')
cmo.setListenAddress('10.62.60.9')
cmo.setEnabled(true)
cmo.setHttpEnabledForThisProtocol(true)
cmo.setTunnelingEnabled(false)
cmo.setOutboundEnabled(false)
cmo.setTwoWaySSLEnabled(false)
cmo.setClientCertificateEnforced(false)

activate()

cd('/Servers/afls_batch')
cmo.createNetworkAccessPoint('adminChannel')

cd('/Servers/afls_batch/NetworkAccessPoints/adminChannel')
cmo.setProtocol('admin')
cmo.setListenAddress('10.62.60.220')
cmo.setEnabled(true)
cmo.setHttpEnabledForThisProtocol(true)
cmo.setTunnelingEnabled(false)
cmo.setOutboundEnabled(false)
cmo.setTwoWaySSLEnabled(false)
cmo.setClientCertificateEnforced(false)

activate()

cd('/Servers/afls_bkg1')
cmo.createNetworkAccessPoint('adminChannel')

cd('/Servers/afls_bkg1/NetworkAccessPoints/adminChannel')
cmo.setProtocol('admin')
cmo.setListenAddress('10.62.58.6')
cmo.setEnabled(true)
cmo.setHttpEnabledForThisProtocol(true)
cmo.setTunnelingEnabled(false)
cmo.setOutboundEnabled(false)
cmo.setTwoWaySSLEnabled(false)
cmo.setClientCertificateEnforced(false)

activate()

cd('/Servers/afls_res1')
cmo.createNetworkAccessPoint('adminChannel')

cd('/Servers/afls_res1/NetworkAccessPoints/adminChannel')
cmo.setProtocol('admin')
cmo.setListenAddress('10.62.58.6')
cmo.setEnabled(true)
cmo.setHttpEnabledForThisProtocol(true)
cmo.setTunnelingEnabled(false)
cmo.setOutboundEnabled(false)
cmo.setTwoWaySSLEnabled(false)
cmo.setClientCertificateEnforced(false)

activate()

cd('/Servers/afls_res2')
cmo.createNetworkAccessPoint('10.62.60.9')

cd('/Servers/afls_res2/NetworkAccessPoints/10.62.60.9')
cmo.setProtocol('admin')
cmo.setListenAddress('10.62.60.9')
cmo.setEnabled(true)
cmo.setHttpEnabledForThisProtocol(true)
cmo.setTunnelingEnabled(false)
cmo.setOutboundEnabled(false)
cmo.setTwoWaySSLEnabled(false)
cmo.setClientCertificateEnforced(false)

activate()

cd('/Servers/afls_comms')
cmo.createNetworkAccessPoint('adminChannel')

cd('/Servers/afls_comms/NetworkAccessPoints/adminChannel')
cmo.setProtocol('admin')
cmo.setListenAddress('10.62.60.220')
cmo.setEnabled(true)
cmo.setHttpEnabledForThisProtocol(true)
cmo.setTunnelingEnabled(false)
cmo.setOutboundEnabled(false)
cmo.setTwoWaySSLEnabled(false)
cmo.setClientCertificateEnforced(false)

activate()

cd('/Servers/AflsAdmSer')
cmo.createNetworkAccessPoint('adminChannel')

cd('/Servers/AflsAdmSer/NetworkAccessPoints/adminChannel')
cmo.setProtocol('admin')
cmo.setListenAddress('10.62.45.226')
cmo.setEnabled(true)
cmo.setHttpEnabledForThisProtocol(true)
cmo.setTunnelingEnabled(false)
cmo.setOutboundEnabled(false)
cmo.setTwoWaySSLEnabled(false)
cmo.setClientCertificateEnforced(false)

activate()

cd('/Servers/afls_bkg1/ServerStart/afls_bkg1')
cmo.setArguments('-Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Dweblogic.security.SSL.ignoreHostnameVerification=false\r\n')
cmo.setClassPath('/opt/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/jdk160_05/lib/tools.jar:/opt/bea/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/bea/wlserver_10.3/server/lib/weblogic.jar:/opt/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/opt/bea/wlserver_10.3/server/lib/webservices.jar:/opt/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/opt/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/opt/bea/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/opt/bea/wlserver_10.3/server/lib/xqrl.jar:/afls_res/booking/managed/cargobkg/latest/apps2config\r\n')

activate()
cmo.setArguments('-Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Dweblogic.security.SSL.ignoreHostnameVerification=true\r\n')
cmo.setClassPath('/opt/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/jdk160_05/lib/tools.jar:/opt/bea/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/bea/wlserver_10.3/server/lib/weblogic.jar:/opt/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/opt/bea/wlserver_10.3/server/lib/webservices.jar:/opt/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/opt/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/opt/bea/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/opt/bea/wlserver_10.3/server/lib/xqrl.jar:/afls_res/booking/managed/cargobkg/latest/apps2config\r\n')

activate()

cd('/Servers/AflsAdmSer')
cmo.destroyNetworkAccessPoint(getMBean('/Servers/AflsAdmSer/NetworkAccessPoints/adminChannel'))

activate()

cd('/Servers/afls_batch')
cmo.destroyNetworkAccessPoint(getMBean('/Servers/afls_batch/NetworkAccessPoints/adminChannel'))

activate()

cd('/Servers/afls_bkg1')
cmo.destroyNetworkAccessPoint(getMBean('/Servers/afls_bkg1/NetworkAccessPoints/adminChannel'))

activate()

cd('/Servers/afls_bkg2')
cmo.destroyNetworkAccessPoint(getMBean('/Servers/afls_bkg2/NetworkAccessPoints/adminChannel'))

activate()

cd('/Servers/afls_comms')
cmo.destroyNetworkAccessPoint(getMBean('/Servers/afls_comms/NetworkAccessPoints/adminChannel'))

activate()

cd('/Servers/afls_res1')
cmo.destroyNetworkAccessPoint(getMBean('/Servers/afls_res1/NetworkAccessPoints/adminChannel'))

activate()

cd('/Servers/afls_res2')
cmo.destroyNetworkAccessPoint(getMBean('/Servers/afls_res2/NetworkAccessPoints/10.62.60.9'))

activate()

cd('/Servers/afls_res1/OverloadProtection/afls_res1')
cmo.setFreeMemoryPercentHighThreshold(30)
cmo.setFreeMemoryPercentLowThreshold(5)

cd('/Servers/afls_res1/OverloadProtection/afls_res1/ServerFailureTrigger/afls_res1')
cmo.setMaxStuckThreadTime(240)
cmo.setStuckThreadCount(10)

activate()

cd('/')
cmo.createUnixMachine('cgappt25-TEST')

cd('/Machines/cgappt25-TEST/NodeManager/cgappt25-TEST')
cmo.setNMType('Plain')
cmo.setListenPort(5556)
cmo.setListenAddress('10.62.6.164')
cmo.setDebugEnabled(false)

activate()

cd('/Servers/afls_res2')
cmo.setMachine(getMBean('/Machines/cgappt25-TEST'))

cd('/Servers/afls_res2/SSL/afls_res2')
cmo.setEnabled(false)

activate()

cd('/Servers/afls_res2')
cmo.setListenPort(7100)

cd('/Servers/afls_res2/SSL/afls_res2')
cmo.setEnabled(false)

activate()

cd('/Servers/afls_res2')
cmo.setListenAddress('10.62.6.164')

cd('/Servers/afls_res2/SSL/afls_res2')
cmo.setEnabled(false)

activate()

cd('/Servers/afls_bkg2')
cmo.setListenAddress('10.62.6.164')
cmo.setListenPort(7300)
cmo.setMachine(getMBean('/Machines/cgappt25-TEST'))

cd('/Servers/afls_bkg2/SSL/afls_bkg2')
cmo.setEnabled(false)

activate()

cd('/Servers/afls_bkg2')
cmo.setListenPort(7003)
cmo.setMachine(getMBean('/Machines/cgvmct02'))

cd('/Servers/afls_bkg2/SSL/afls_bkg2')
cmo.setEnabled(false)

activate()

cd('/Servers/afls_res2')
cmo.setListenAddress('cgvmct02.qcorpaa.aa.com')
cmo.setListenPort(7001)
cmo.setMachine(getMBean('/Machines/cgvmct02'))

cd('/Servers/afls_res2/SSL/afls_res2')
cmo.setEnabled(false)

activate()

cd('/Servers/afls_bkg2')
cmo.setListenAddress('cgvmct02.qcorpaa.aa.com')

cd('/Servers/afls_bkg2/SSL/afls_bkg2')
cmo.setEnabled(false)

activate()
